<%--
  Created by IntelliJ IDEA.
  User: Zach Huffman
  Date: 4/13/13
  Time: 5:48 PM
  To change this template use File | Settings | File Templates.
--%>


<%@ page import="gfo.Bracket; gfo.Tournament; gfo.Player" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="Match" />
        <title>Matches</title>
    </head>
    <body>
        <div class="body">
            <h1>Matches
                <span class="menuButton"><g:link class="create" action="create">New Tournament</g:link></span>
            </h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <ul>
                <g:each in="${matches}" var="match">
                    <li><g:link controller="match" action="show" id="${match.id}">${match.encodeAsHTML()}</g:link></li>
                </g:each>
            </ul>
</body>
</html>